package com.silverbox.shopper.mapper;

import com.silverbox.shopper.entity.ThirdPartyAuthorization;
import org.apache.ibatis.annotations.Param;

public interface ThirdPartyAuthorizationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ThirdPartyAuthorization record);

    int insertSelective(ThirdPartyAuthorization record);

    ThirdPartyAuthorization selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ThirdPartyAuthorization record);

    int updateByPrimaryKey(ThirdPartyAuthorization record);
    
    /**
     * 根据门店id返回口碑店铺信息
     * @param storeId
     * @return
     */
    ThirdPartyAuthorization selectByStoreId(@Param("storeId") Integer storeId);

    String findAlipayStoreIdByShopper(@Param("storeId") Integer storeId);
}